package com.billing.service;

import org.apache.ibatis.annotations.Param;

import com.billing.model.entity.TUserPrivate;
import com.billing.model.entity.TUserPrivateBuffer;

public interface UserPrivateBufferService {
	/**
	 * 增加数据
	 * @param userPrivate
	 * @return
	 */
	public int insertTUserPrivate(TUserPrivateBuffer userPrivate);
	/**
	 * 增加数据(根据主体数据)
	 * @param userPrivate
	 * @return
	 */
	public int insertTUserPrivateByMain(TUserPrivate userPrivate);
	/**
	 * 查询数据通过 userid
	 * @param userid
	 * @return
	 */
	TUserPrivateBuffer selectUserPrivateByUid(@Param("userid")String userid);
	/**
	 * 修改数据
	 * @param userPrivate
	 * @return
	 */
	public int updateUserPrivate(TUserPrivateBuffer userPrivate);
	/**
	 * 修改数据(根据主体数据)
	 * @param userPrivate
	 * @return
	 */
	public int updateUserPrivateByMain(TUserPrivate userPrivate);
	/**
	 * 查询数据通过 id
	 * @param id
	 * @return
	 */
	TUserPrivateBuffer selectUserPrivateById(@Param("id")String id);
	/**
	 * 修改数据通过 userid
	 * @param userPrivate
	 * @return
	 */
	public int updateUserPrivateByUid(TUserPrivateBuffer userPrivate);
	/**
	 * 修改数据通过 userid(根据主体数据)
	 * @param userPrivate
	 * @return
	 */
	public int updateUserPrivateByUidByMain(TUserPrivate userPrivate);
}
